package com.canaan.business.domain.inOutStock;

import com.canaan.common.annotation.Excel;
import com.canaan.common.annotation.TableName;
import com.canaan.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 入库单明细对象 wms_in_stock_detail_order
 *
 * @author ruoyi
 * @date 2022-12-20
 */
@TableName("wms_in_stock_detail_order")
@Data
public class WmsInStockDetailOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    private String no;

    /** 申请单编号 */
    @Excel(name = "申请单编号")
    private String orderNo;

    /** 物料编号 */
    @Excel(name = "物料编号")
    private String productNo;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String productName;

    /** 目标仓库编号 */
    private String storehouseNo;

    /** 目标仓库名称 */
    @Excel(name = "目标仓库")
    private String storehouseName;

    /** 目标库位编号 */
    private String storehouseLocationNo;

    /** 目标库位名称 */
    @Excel(name = "目标库位")
    private String storehouseLocationName;

    /** 申请明细状态 1新建 2已分配 3已入库 */
    @Excel(name = "申请明细状态")
    private Integer orderDetailStatus;

    /** 入库申请数 */
    @Excel(name = "入库申请数")
    private Long orderQty;

    /** 实际入库数 */
    @Excel(name = "实际入库数")
    private Long actualQty;

    /** 码货员编号 */
    private String shipper;

    /** 码货员名称 */
    @Excel(name = "码货员")
    private String shipperName;

    /** 码货单编号 */
    @Excel(name = "码货单号")
    private String yardageGoodsOrderNo;

    /** 码货单状态 */
    private Integer yardageGoodsOrderStatus;

    /** 是否是先入库后检验的物料 */
    private Long whetherWaitProduct;

   /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 是否删除：1是 0否 */
    private String delFlag;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("orderNo", getOrderNo())
            .append("productNo", getProductNo())
            .append("orderDetailStatus", getOrderDetailStatus())
            .append("orderQty", getOrderQty())
            .append("actualQty", getActualQty())
            .append("storehouseNo", getStorehouseNo())
            .append("storehouseName", getStorehouseName())
            .append("storehouseLocationNo", getStorehouseLocationNo())
            .append("storehouseLocationName", getStorehouseLocationName())
            .append("sort", getSort())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
